KERN_DIR = /home/zhangxinsheng/100ask_roc-rk3399-pc/linux-4.4

all:
	make -C $(KERN_DIR) M='pwd' modules
	$(CROSS_COMPILE)gcc -o button_test button_test.c

clean:
	make -C $(KERN_DIR) M='pwd' modules clean
	rm -rf modules.order
	rm -rf ledtest

obj-m	+= button_drv.o
obj-m	+= board_xxx.o